//
//  Tone.h
//  HelloIphone
//
//  Created by Geoffrey Gallaway on 8/1/09.
//



@interface Tone : NSObject {
	Float32		frequency;
	Float32		duration;
	Float32		volume;
	int			*samples;
	int			numberOfSamples;
	int			currentSample;
}

@property (readwrite) Float32 frequency;
@property (readwrite) Float32 duration;
@property (readwrite) Float32 volume;
@property (readonly)  int		*samples;
@property (readonly)  int		numberOfSamples;

-(id)init;
-(id)initWithFrequency:(Float32)hz duration:(Float32)msecs volume:(Float32)percentage;
-(void)generateTone;
-(float)getNextSample;
-(BOOL)hasNextSample;

@end
